Get the current username

Get the current username
import getpass

print(getpass.getuser())

Output:

students